package com.one.mapper;

import com.one.pojo.OneFriend;
import com.one.pojo.OneUser;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface OneUserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(OneUser record);

    int insertSelective(OneUser record);

    OneUser selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(OneUser record);

    int updateByPrimaryKey(OneUser record);

    BigDecimal totalMoney();

    BigDecimal previousMoney(@Param("start") String start, @Param("end") String end);

    OneUser findByPhone(String phone);

    OneUser findByLoginName(String loginName);

    List<OneFriend> findFriend(String upperUserRefId);

    List<OneUser> findAll();

    List<OneUser> selectPageList(@Param("offset") int offset, @Param("pageSize") int pageSize);

    int selectPageCount();

}